#include "shm.hpp"
#include "namedPipe.hpp"

int main()
{
    Shm shm(gcomm_path,gproj_id,gUser);
    shm.Zero();
    char* shmaddr = (char*)shm.Addr();
    NamePiped fifo(comm_path,Creater);
    fifo.OpenForWrite();

   std::string message = "I am process A";

   for(int i = 0 ; i < message.size() ; ++i)
        shmaddr[i] = message[i];

   fifo.Writepipe(message);


    return 0;
}